package Harmonisation.Voix;

import java.util.ArrayList;

import Harmonisation.Note;

public class Soprano extends Voix {
	public static int noteMin = 14, noteMax = 26;

	public Soprano(ArrayList<Note> partition) {
		super(partition);
		canal = 1;
	}

	public String lilypond() {
		int octave = 4;
		String s = "%  Soprano \n";
		s += "\\new Staff {\n";
		s += "\t\\set Staff.instrumentName = #\" Soprano \" \n";
		s += "\t\\clef treble\n";
		s += "\t\\relative c''";
		s += " {\n";
		s += "\t\t";
		int octPre = octave;
		Note notePrecedente = null;
		for (Note note : partition) {
			if (notePrecedente == null)
				;
			s += note.getLily(notePrecedente, octPre) + " ";
			notePrecedente = note;
		}

		s += "r4";
		s += "\n";
		s += "\t}\n";
		s += "}\n";
		return s;
	}

}
